package ru.yermak.bookkeeping.ui;

import org.jdesktop.swingx.JXTaskPane;

import javax.swing.*;
import java.util.List;

/**
 * User: harrier
 * Date: Dec 22, 2008
 * Time: 12:29:35 AM
 */
public class BTaskGroup extends JXTaskPane {
    private List<Action> actions;

    public BTaskGroup(String title) {
        setTitle(title);
    }

    public void init() {
        for (Action action : actions) {
            add(action);
        }
    }

    public void setActions(List<Action> actions) {
        this.actions = actions;
    }
}
